
monster1 = {:health => 500}
monster2 = {:health => 500}





for i in (1..5)

	k = rand(100)
	puts "monster1 attacks monster2 with #{k} damage"
	monster2[:health] = monster2[:health] - k;
	puts "monster2's health is now #{monster2[:health]}/500"

	j = rand(100)
	puts "monster2 attacks monster1 with #{j} damage"
	monster1[:health] = monster1[:health] - j;
	puts "monster1's health is now #{monster1[:health]}/500"


end

puts "Monster 1 final health is  #{monster1[:health]}"
puts "Monster 2 final health is  #{monster2[:health]}"

if monster1[:health] > monster2[:health]
	puts "monster 1 wins!"
else
	puts "monster 2 wins!"
end;
